package vn.cent.games.findnumber.beans;

import com.smartfoxserver.v2.entities.User;

/**
 * class describe player in the math
 * @author TV.Vinh
 * @version 1.0
 */
public class PlayerBean {
	/** User id */
	private int id = 0;
	
	/** Id of the room the user is playing */
	private int roomID;
	
	/** Ready to play flag */
	private boolean readyToPlay = false;
	
	/** Reference to SFS User object */
	User sfsUser = null;
	
	/**
	 * Constructor
	 * 
	 * @param id: PlayerID
	 * @param room: current joined room
	 * @param ready: ready to play
	 * @param sfsUser: Reference to SFS User object
	 */
	public PlayerBean (int id, int roomID, boolean ready, User sfsUser){
		this.id = id;
		this.roomID = roomID;
		this.readyToPlay = ready;
		this.sfsUser = sfsUser;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getRoomID() {
		return roomID;
	}

	public void setRoomID(int roomID) {
		this.roomID = roomID;
	}

	public boolean isReadyToPlay() {
		return readyToPlay;
	}

	public void setReadyToPlay(boolean readyToPlay) {
		this.readyToPlay = readyToPlay;
	}

	public User getSfsUser() {
		return sfsUser;
	}

	public void setSfsUser(User sfsUser) {
		this.sfsUser = sfsUser;
	}
}
